package com.jy.adscm.operation.purchase.mapper.mysql;

import com.jy.adscm.operation.purchase.bean.Bom;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * bom清单表 Mapper 接口
 * </p>
 *
 * @author lzf
 * @since 2019-05-05
 */
public interface BomMapper extends BaseMapper<Bom> {

    @Select("SELECT id,name,specification FROM bom")
    List<Bom> queryByBom();
    @Select("SELECT id,name,specification FROM bom where like name #{key}")
    List<Bom> queryByLikeBom(@Param("key") String key);


}
